<!doctype html>
<html>
<head>
    <meta name="layout" content="main_index">
    <g:javascript src="formwork.js" />
</head>
<body>
<div region="west" style="width:150px;padding:10px 5px;"  class="tree-lines">
    <div style="padding:2px;position: relative;width:120px;height: 30px;">
        <a href="#" class="formworkcategory-add" title="添加" >添加</a>
        <a href="#" class="formworkcategory-update" title="修改">修改</a>
        <a href="#" class="formworkcategory-delete" title="删除">删除</a>
    </div>
    <ul id="tt" url="${createLink(action: 'categoryTreeJson')}" animate="true" class="tree-lines"></ul>
</div>
<div id="content" region="center" style="padding:5px;border-left-width: 0;">
    <table id="formworkcategory_tbl" url="${createLink(action: 'listJson')}"></table>
</div>
<div id="add" style="padding:5px 10px"  class="create-container">
    <g:form name="add_form" action="save" class="add_form">
        <g:render template="form"/>
    </g:form>
</div>

<div id="add_category" style="padding:5px 10px">
    <g:form name="add_category_form" action="saveCategory" class="add_form">
        <g:render template="category_form"/>
    </g:form>
</div>

<div id="composition_area_num_container" style="display: none">
    <div style="border:1px solid #cccccc;width:auto;padding:30px;height: 100px;">
        %{--<g:each in="${com.okaysoft.ofb.FormworkComposition.Category.values()}" var="fcc">
            <div style="float: left;width: 45%">
            <g:radio value="${fcc.name()}" name="cp_area_num_category" id="cp_area_num_category_${fcc.id}" />${fcc.label}
            </div>
        </g:each>--}%
        <p><g:radio value="hor" name="cp_area_num_horver" id="cp_area_num_horver_hor" class="area-hor area-hor-root"/>横排</p>
              <p> 盘排列：<g:radio value="HORIZONTAL_TOP2BOTTOM" name="cp_area_num_category" id="cp_area_num_category_0" class="area-hor area-hor-pan" />自上而下
               <g:radio value="HORIZONTAL_BOTTOM2TOP" name="cp_area_num_category" id="cp_area_num_category_0" class="area-hor area-hor-pan" />自下而上
              </p>
            <p>
                端子排列：<g:radio value="TERMINAL_LEFT2RIGHT" name="cp_area_num_terminal_category" id="cp_area_num_category_0" class="area-hor area-hor-ter"  />自左而右
                <g:radio value="TERMINAL_RIGHT2LEFT" name="cp_area_num_terminal_category" id="cp_area_num_category_0" class="area-hor area-hor-ter" />自右而左
            </p>
        <p><g:radio value="ver" name="cp_area_num_horver" id="cp_area_num_horver_ver" class="area-ver area-ver-root"/>竖排</p>
            <p> 盘排列：<g:radio value="VERTICAL_LEFT2RIGHT" name="cp_area_num_category" id="cp_area_num_category_0" class="area-ver area-ver-pan"/>自左而右
            <g:radio value="VERTICAL_RIGHT2LEFT" name="cp_area_num_category" id="cp_area_num_category_0" class="area-ver area-ver-pan"/>自右而左
            </p>
            <p>
                端子排列：<g:radio value="TERMINAL_TOP2BOTTOM" name="cp_area_num_terminal_category" id="cp_area_num_category_0" class="area-ver area-ver-ter"/>自上而下
                <g:radio value="TERMINAL_BOTTOM2TOP" name="cp_area_num_terminal_category" id="cp_area_num_category_0" class="area-ver area-ver-ter"/>自下而上
            </p>
        <div style="clear: both"></div>
        <div style="padding:10px 0;">盘数量：<g:textField name="cp_area_quantity"/></div>
    </div>
</div>
<g:textArea name="composition_list_container" rows="" cols="">
    <g:include controller="formwork" action="composition"></g:include>
</g:textArea>
<g:hiddenField name="deleteUrl" value="${createLink(uri: '/formwork/delete')}"/>
<g:hiddenField name="categoryDeleteUrl" value="${createLink(uri: '/formwork/categoryDelete')}"/>
</body>
</html>
